/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GUIHelp.java
 *
 * Created on Apr 27, 2011, 10:25:51 PM
 */

package horsechess.client.gui;

import java.awt.Color;

/**
 *
 * @author Administrator
 */
public class GUIHelp extends javax.swing.JDialog {

    /** Creates new form GUIHelp */
    public GUIHelp(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.setBackground(Color.white);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        lblTitle = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txaHelp = new javax.swing.JTextArea();
        btnClose = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(471, 416));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setMinimumSize(new java.awt.Dimension(471, 416));
        jPanel1.setPreferredSize(new java.awt.Dimension(471, 416));
        jPanel1.setLayout(null);

        lblTitle.setFont(new java.awt.Font("Comic Sans MS", 1, 24));
        lblTitle.setForeground(new java.awt.Color(51, 0, 51));
        lblTitle.setText("Tip of the day ");
        jPanel1.add(lblTitle);
        lblTitle.setBounds(120, 50, 180, 34);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resource/Other/tip.gif"))); // NOI18N
        jPanel1.add(jLabel1);
        jLabel1.setBounds(40, 40, 50, 50);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resource/Other/490979.jpg"))); // NOI18N
        jPanel1.add(jLabel2);
        jLabel2.setBounds(300, 10, 140, 120);

        txaHelp.setColumns(20);
        txaHelp.setRows(5);
        txaHelp.setText("The horsechess game is game for racing horse. Players rolling their dice then click on horse to move their horse.\nThe dice can be one or two dice. To playing the game, the player has to make configuration to connect to server though config dialog (open it by click on menu config item). \nPlayer can choose room to join. If that room has two player, the server can allow those players to play. Server will decide whether \n\n");
        jScrollPane1.setViewportView(txaHelp);

        jPanel1.add(jScrollPane1);
        jScrollPane1.setBounds(6, 140, 460, 230);

        btnClose.setBackground(new java.awt.Color(255, 255, 255));
        btnClose.setText("Close");
        btnClose.setPreferredSize(new java.awt.Dimension(130, 380));
        jPanel1.add(btnClose);
        btnClose.setBounds(130, 380, 170, 30);

        getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                GUIHelp dialog = new GUIHelp(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnClose;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblTitle;
    private javax.swing.JTextArea txaHelp;
    // End of variables declaration//GEN-END:variables

}
